<?php /* @var $this Controller */ ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <meta charset="utf-8" />
    <title><?php echo Yii::t("view_partials_header", "Bo Xanh Foods"); ?></title>
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <link href="<?php echo Yii::app()->request->baseUrl; ?>/contents/Images/favicon.ico" rel="shortcut icon" type="image/x-icon" />
    <link href="<?php echo Yii::app()->request->baseUrl; ?>/contents/bootstrap-3.1.1/css/bootstrap.css" rel="stylesheet" />
    <link href="<?php echo Yii::app()->request->baseUrl; ?>/contents/font-awesome-4.0.3/css/font-awesome.css" rel="stylesheet" />
    <link href="<?php echo Yii::app()->request->baseUrl; ?>/contents/Styles/boxanh.css" rel="stylesheet" />
    <link href="<?php echo Yii::app()->request->baseUrl; ?>/contents/poshytip/tip-boxanhorange/tip-boxanhorange.css" rel="stylesheet" />


    <script src="<?php echo Yii::app()->request->baseUrl; ?>/contents/ParallaxContentSlider/js/modernizr.custom.28468.js"></script>
    <script src="<?php echo Yii::app()->request->baseUrl; ?>/contents/Scripts/jquery-1.7.1.min.js"></script>
    <script src="<?php echo Yii::app()->request->baseUrl; ?>/contents/bootstrap-3.1.1/js/bootstrap.js"></script>
    <script src="<?php echo Yii::app()->request->baseUrl; ?>/contents/poshytip/jquery.poshytip.min.js"></script>

    <script src="<?php echo Yii::app()->request->baseUrl; ?>/contents/Sticky/sticky.full.js"></script>
    <link href="<?php echo Yii::app()->request->baseUrl; ?>/contents/Sticky/sticky.full.css" rel="stylesheet" />
</head>
<body>

<div class="body-wrapper row">
    <div class="col-xs-12">
        <header>
            <?php $this->renderPartial('//Partials/_Header'); ?>
        </header>
        <div id="body">
            <?php echo $content; ?>
        </div>
        <footer>
            <?php $this->renderPartial('//Partials/_Footer'); ?>
        </footer>
    </div>
</div>
</body>
<script>
    $('.jsc-add-to-cart').on('click', function () {
        var href = $(this).attr('href');
        $.post(
            href,
            {},
            function (data) {
                if (data != '' && !isNaN(data)) {
                    $('#cart-qty').html(data);
                    $.sticky('<?php echo Yii::t("view_site_home", "Add to cart successfully !"); ?>');
                } else {
                    $.sticky('<?php echo Yii::t("view_site_home", "Add to cart fail !"); ?>');
                }
            }
        );
        return false;
    })
</script>
</html>
